﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;

namespace MediaCenterExractor
{
    static class Logger
    {
        private static string _logFilePath;
        
        public static void Create(string title)
        {
            var path = ConfigurationManager.AppSettings["LogsPath"];
            _logFilePath = Path.Combine(path, title + ".log");
        }

        public static void Write(string text)
        {
            File.AppendAllText(_logFilePath, text + "\r\n");
            Console.WriteLine(text);
        }
    }
}
